export default class BaseException extends Error {
  code: any
  originalError: Error
  constructor(t, e?) {
    var s
    super(t instanceof Error ? t.message : t),
      (this.name = "BaseException"),
      e && (this.code = e),
      t instanceof Error && ((this.originalError = t), (s = t) && s instanceof Error && s.isMock && (this.isMock = !0))
  }
}
